package cn.yitun.chat.yitunserverimapicore.business.group.service;

import cn.yitun.chat.yituncommonmessage.Info;
import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudService;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupJoinVerifyQuestionDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupSettingDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupSettingInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupJoinVerifyQuestionVo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupSettingVo;

import java.util.List;

/**
 * Date 2019-01-20 18:21:27<br>
 * Description
 * 
 * @author yitun
 * @since 1.0.0
 */
public interface GroupJoinSettingService
		extends CrudService<GroupSettingDto, GroupSettingInfo, GroupSettingVo>{


	GroupSettingVo getByGroupId(Long groupId);

	List<GroupJoinVerifyQuestionVo> getVerifyQuestionListByGroupId(Long groupId);

	Info saveOrUpdate(Long ownerUserId, GroupSettingDto data);

	void saveOrUpdate(GroupSettingDto data);

	void saveOrUpdate(Long groupId, List<GroupJoinVerifyQuestionDto> list);

}
